-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
[dotnet] Modernize EnvironmentManager
, standardize assembly teardown
#15551
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
@nvborisenko What do you think? This modernization should have no behavior changes, and it will allow us to iterate on our testing without adding a million lines which change nothing. |
User description
Description
Modernizes some test code and standardizes assembly teardown, in preparation for testing infrastructure improvements.
Motivation and Context
Contributes to #15536
Types of changes
Checklist
PR Type
Enhancement, Tests
Description
Introduced centralized
AssemblyTeardown
for test setup and teardown.AssemblyTeardown
classes for Chrome, Edge, Firefox, IE, Safari, and Remote tests.Refactored
EnvironmentManager
for improved readability and immutability.EnvironmentManager
.Modernized test utilities and attributes for better maintainability.
NeedsFreshDriverAttribute
andTestUtilities
.Reactivated and updated previously commented-out Firefox tests.
FirefoxProfileManagerTest
andFirefoxProfileTests
.Changes walkthrough 📝
12 files
Added centralized test setup and teardown for Chrome tests
Removed redundant teardown logic from Chrome tests
Simplified property definitions and type checks
Refactored driver management logic and removed unused methods
Refactored `EnvironmentManager` for immutability and readability
Simplified property definitions in `StubDriver`
Improved type casting and property handling in utilities
Added centralized test setup and teardown for Edge tests
Added centralized test setup and teardown for Firefox tests
Added centralized test setup and teardown for IE tests
Added centralized test setup and teardown for Remote tests
Added centralized test setup and teardown for Safari tests
2 files
Reactivated and updated Firefox profile manager tests
Reactivated and updated Firefox profile tests